{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "747f70ab",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "查询课表\n",
      "10:35-12:00 AI软件应用 新综612\n"
     ]
    }
   ],
   "source": [
    "print(\"查询课表\")\n",
    "import datetime  \n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time) \n",
    "if week_time == 1:\n",
    "    print(\"12:50-14:20 写作训练 1-401\")\n",
    "    print(\"14:30-16:50 创业实践 1-401\")\n",
    "    print(\"18:45-20:10 大学英语 10-404\")\n",
    "    print(\"20:15-21:45 人与自然 9-4207\")\n",
    "elif week_time == 2:\n",
    "    print(\"08:00-10:25 用户研究 3实-312\")\n",
    "    print(\"10:35-12:00 毛概实践 7-402\")\n",
    "    print(\"14:30-15:55 H5 3实-308\")\n",
    "    print(\"18:45-20:10 乒乓球 东区体育馆\")\n",
    "elif week_time == 3:\n",
    "    print(\"10:35-12:00 大学英语 10-404\")\n",
    "elif week_time == 4:\n",
    "    print(\"09:45-12:00 Python语言 新综612\")\n",
    "elif week_time == 4:\n",
    "    print(\"09:45-12:00 Python 新综612\")\n",
    "    print(\"14:30-16:50 毛概理论 7-402\")\n",
    "elif week_time == 5:\n",
    "    print(\"10:35-12:00 AI软件应用 新综612\")\n",
    "else:\n",
    "    print(\"周六周日不上课\");\n",
    "    print(\"终于可以休息啦！\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0d6209d8",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
